package com.lsu.state.experiment;

/**
 * 一个硬币状态
 *
 * @Author wang suo
 * @Date 2020/12/26 0026 15:09
 * @Version 1.0
 */
public class OneCoinState extends BaseState {
    @Override
    void insertHalfCoin() {
        System.out.println("出可乐...");
        super.context.setBaseState(Context.NO_COIN_STATE);
    }

    @Override
    void insertOneCoin() {
        System.out.println("出可乐并找零...");
        super.context.setBaseState(Context.NO_COIN_STATE);
    }
}
